package com.example.mvvmdemo.network;

import com.example.common.model.BaseResponse;
import com.example.mvvmdemo.model.User;
import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import java.util.List;

public interface ApiService {
    
    @GET("users")
    Observable<BaseResponse<List<User>>> getUsers(@Query("page") int page, @Query("size") int size);
    
    @GET("users/{id}")
    Observable<BaseResponse<User>> getUserById(@Path("id") int userId);
}